<?php

namespace App\Exception;

use function Hyperf\Translation\trans;
use Throwable;

/**
 * rpc调用异常的处理
 */
class LogicException extends \Exception
{
    public function __construct($code = 0)
    {
        parent::__construct(trans(sprintf("code.%d",$code)), $code);
    }
}